<?
    /* -*- Mode: PHP5; tab-width: 4; indent-tabs-mode: nil; basic-offset: 4 -*- */

    /*********************************************************
    *            --== essentialmind ==--
    *
    * @version n/a
    * @since 09.05.2011
    * @copyright essentialmind 2011
    *
    *********************************************************/

    /***
    * Class installNodeEstate
    ****
    * This is the module installer/deinstaller, shall
    * automate integration of new modules into client
    * solutions
    ****
    * @package installNodes
    * @author Thomas Brandstätter <tb@essentialmind.com>
    * @version n/a
    * @since 09.05.2011
    * @copyright essentialmind 2011
    ***/
    class installNodeExtensibleForm extends installNode{
        
        /**
         * This is the node install script
         *
         */
        protected function create(){
            //create database table  
                    
            $this->db->Execute("CREATE TABLE node_extensible_form(
                                    id              SERIAL,
                                    xml_document_file 	TEXT,
                                    PRIMARY KEY(id)
                                )");
                                
			// $this->db;                                
        }
        
        /**
         * This is the node uninstall script
         *
         */
        protected function remove(){
            //drop database table   
            
			$this->db->Execute('DROP TABLE node_extensible_form');
        }
        
        
        /**
         * Sets the properties of this node
         *
         */
        protected function setProps(){
            $this->setDescription('Exentsible Form');   
            $this->setAdminAdd(true);
            $this->setIsFolder(true);
        }
    }
?>